package com.xu.test;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 * @author xudenghui
 * @create 2022-01-19 15:31
 **/
public class test {
    public static void main(String[] args) {
        Date date = new Date();
        GregorianCalendar gc = (GregorianCalendar) Calendar.getInstance();
        gc.setTime(date);
        System.out.println(Integer.valueOf(gc.get(1)));
    }
}
